package com.ruoyi.littleRedBook.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.littleRedBook.domain.pojo.Product;

import java.math.BigDecimal;
import java.util.List;

public interface ProductService extends IService<Product> {
    AjaxResult addProduct(Product product);

    AjaxResult editProduct(Product product);

    AjaxResult offlineProduct(Long id);

    AjaxResult getMyOnsaleProducts();

    AjaxResult getMySoldProducts();

    AjaxResult getMyPendingProducts();

    AjaxResult getMyRejectedProducts();

    AjaxResult getProductDetail(Long id);

    AjaxResult getProductList(Integer pageNum, Integer pageSize);

    AjaxResult searchProducts(String keyword, Long categoryId, BigDecimal minPrice, BigDecimal maxPrice, Integer pageNum, Integer pageSize);
}
